﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PraxisRent.BL;
using PraxisRent.Entities;
using Microsoft.Practices.Unity;

namespace PraxisRent.UI
{
    public partial class FrmAlquilerMotivo : Form
    {
        public FrmAlquilerMotivo()
        {
            InitializeComponent();
            this.BuilUp();
        }

        private void FrmAlquilerMotivo_Load(object sender, EventArgs e)
        {
            aLQUILERBindingSource.AddNew();
        }

        public ALQUILER currentAlquilerMotivo { get; set; }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            currentAlquilerMotivo = aLQUILERBindingSource.Current as ALQUILER;
            this.Close();
        }

        private void btnEditar_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
